package com.simple.datax.seda.core;

public class InterruptController {
	boolean interruptting = false;
	int activeCount = 0;

	int getActiveCount() {
		return activeCount;
	}

	boolean isInterruptting() {
		return interruptting;
	}

	void interrupting() {
		this.interruptting = true;
	}

	void start() {
		activeCount++;
	}

	void interrupt() {
		activeCount--;
	}

}
